Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enhance quick stats #1706

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

janndriessen
Copy link
Collaborator

@janndriessen janndriessen commented Dec 22, 2024

Summary of Changes

  • Moves more data into quick stats
By submitting this pull request, you are confirming the following to be true:
  • I have reviewed the Contribution Guidelines.
  • I have performed a self-review of my own code.
  • I have updated my repository to match the master at IndexCoop/index-app.
  • I have included test data or screenshots that prove my fix is effective or that my feature works.

Copy link

vercel bot commented Dec 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
index-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 2, 2025 0:53am

@janndriessen janndriessen marked this pull request as ready for review January 2, 2025 12:46
@janndriessen janndriessen requested review from tokdaniel and 0xonramp and removed request for tokdaniel January 2, 2025 14:25
Copy link
Collaborator

@0xonramp 0xonramp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few smol nits but LGTM

label='24h Change'
value={`${formatAmount(navchange, 2)}%`}
overrideLabelColor={navchange >= 0 ? 'text-ic-green' : 'text-ic-red'}
value={`${formatAmount(data.token.navchange, 2)}%`}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could use formatPercentage instead here

low24h: formatStatsAmount(base.low24h, baseCurrency),
high24h: formatStatsAmount(base.high24h, baseCurrency),
},
token: { ...token },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: spread syntax not needed, could just be token,

@janndriessen
Copy link
Collaborator Author

few smol nits but LGTM

both fixed in #1718

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants